<?php

namespace app\admin\controller;

use think\Controller;
use Util\SysDb;

class Uncount extends Controller
{
    public function uncount()
    {
        $this->db = new SysDb();
        $one = $this->db->table('tenant_withdrawals')->where(['status' => 0])->count();
        $two = $this->db->table('bus_after_sale')->where(['status' => 0])->count();
        $three = $this->db->table('bus_bottom_sheet')->where(['status' => 0])->count();
        $four = $this->db->table('bus_withdrawals')->where(['status' => 0])->count();
        $five = $this->db->table('sys_advice')->where(['status' => 0])->count();
        $data['withdrawalsSaleNum']=$one;
        $data['busWithdrawalsSaleNum']=$four;
        $data['bottomSheetNum']=$three;
        $data['afterSaleNum']=$two;
        $data['adviceNum']=$five;
        exit(json_encode(['message' =>'succ','result'=>$data]));
    }
    
}

